Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 4 - Printing Messages / Printing Messages Reference
User Interface Constants and Data Types


The Status Structure

The status structure, of data type gxStatusRecord, contains status information used with the status messages GXJobStatus, GXWriteStatusToDTPWindow, GXInitializeStatusAlert, GXHandleAlertEvent, and GXHandleAlertStatus. These messages are described in the section "Printing Messages Reference" beginning on page 4-9.

struct gxStatusRecord {
   unsigned short statusType;
   unsigned short statusId;
   unsigned short statusAlertId;
   Signature      statusOwner;      
   short          statResId;  
   short          statResIndex;     
   short          dialogResult;     
   unsigned short bufferLen;
   char           statusBuffer[1];     
};
typedef struct gxStatusRecord gxStatusRecord;
Field Description
statusType
The type of status that this structure represents. This is one of the values shown in Table 4-1.
statusId
The ID of the status that this structure represents. If the value of
this field is 0, there is no associated printing alert ('plrt') resource.
statusAlertId
The ID of the printing alert for this status.
statusOwner
The creator type of the owner of this status structure.
statResId
The resource ID for the status ('stat') resource used to process this status.
statResIndex
The index value for indexing into the status resource for this status.
dialogResult
The ID of the button string that was selected to dismiss the printing alert box associated with this status.
bufferLen
The number of bytes in the status buffer.
statusBuffer
This field is a buffer for the caller to store any additional information for use by the status-handling function.
Note
The triplet of values that includes the statusOwner, statResId, and statResIndex fields must be unique for each status record.
Table 4-1 shows the status types that you can specify in a status record.
Table 4-1 Status type IDs
ConstantValueExplanation
gxNonFatalError1Affects the icon in the status dialog box
gxFatalError2Sends a printing alert to the status dialog box
gxPrinterReady3Signals QuickDraw GX to leave alert mode
gxUserAttention4Signals initiation of a modal dialog box
gxUserAlert5Signals initiation of a printing alert box
gxPageTransmission6Signals that a page was sent to the printer and increments the page counts in strings that are displayed to the user
gxOpenConnectionStatus7Signals QuickDraw GX to begin animation on printer icon
gxInformationalStatus8Specifies the default status type and has no side effects
gxSpoolingPageStatus9Signals that a page was spooled and increments the page count in the status dialog box
gxEndStatus10Signals that spooling has ended
gxPercentageStatus11Signals QuickDraw GX as to the amount of the job that is currently complete


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help